package com.xjscrm.console.mapper;

import com.xjscrm.common.entity.OperatePlanDevice;
import com.xjscrm.console.param.operatePlan.OperatePlanDeviceQuery;
import com.xjscrm.console.vo.OperatePlanDeviceVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface OperatePlanDeviceMapper {
    int addOperatePlanDevice(OperatePlanDevice operatePlanDevice);

    int update(OperatePlanDevice operatePlanDevice);

    List<OperatePlanDeviceVo> getOperatePlanDeviceList(OperatePlanDeviceQuery operatePlanDeviceQuery);

    int deleOperatePlanDeviceById(@Param("id") Long id, @Param("merId") Long merId);

    OperatePlanDevice getById(@Param("id") Long id,  @Param("merId") Long merId);

}
